export function useCssVar(key, css) {
  const el = window.document.documentElement
  const value = window.getComputedStyle(el).getPropertyValue(key).trim()
  
  if(value){
    el.style.setProperty(key, css)
  }
}

export function useCssVars(options = {}) {
  for (let key in options) {
    useCssVar(key, options[key])
  }
}
